package com.crissy.userService.service;

import com.crissy.userService.common.Result;
import com.crissy.userService.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.crissy.userService.entity.dto.UserDTO;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Crissy-月下闲人
 * @since 2023-11-10
 */
public interface IUserService extends IService<User> {

    Result<UserDTO> toLogin(User user);

    Result<String> toLogout(String token);

    Result<UserDTO> toRegister(User user);
    
    Result<UserDTO> toInit(String token);

    Result<UserDTO> toDelete(String token);
}
